package com.example.multidatasource.generator.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.multidatasource.generator.domain.Product;
import com.example.multidatasource.generator.mapper.ProductMapper;
import com.example.multidatasource.generator.service.ProductService;
import org.springframework.stereotype.Service;

@Service
@DS("slave1")
/*这里是 slave1 那么配置文件中就需要是 slave1  如果是 slave_1
那么配置文件中就需要是 slave_1  不然是对应不到的*/
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
        implements ProductService {

}




